package com.wfk.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 平台角色表
 * </p>
 *
 * @since 2018-12-05
 */
@TableName("t_sys_role")
public class SysRole implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableField(exist=false)
	private List<SysUser> users = new ArrayList<SysUser>();
	
	@TableField(exist=false)
	private SysRoleMenu roleMenu ;
	
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 角色名称
	 */
	private String name;

	/**
	 * 0有效 -1无效
	 */
	private Integer status;

	private String remark;

	/**
	 * 创建时间
	 */
	private Date createtime;

	/**
	 * 是否逻辑删除 0正常 -1删除
	 */
	@TableLogic
	private Integer isdel;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getIsdel() {
		return isdel;
	}

	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}

	public List<SysUser> getUsers() {
		return users;
	}

	public void setUsers(List<SysUser> users) {
		this.users = users;
	}

	public SysRoleMenu getRoleMenu() {
		return roleMenu;
	}

	public void setRoleMenu(SysRoleMenu roleMenu) {
		this.roleMenu = roleMenu;
	}

	@Override
	public String toString() {
		return "SysRole{" +
				"id=" + id +
				", name=" + name +
				", status=" + status +
				", remark=" + remark +
				", createtime=" + createtime +
				", isdel=" + isdel +
				"}";
	}

}
